SafeSvg\safe_svg B

Total Complexity 91
Dependencies 4
Dependents 0
Total lines 685
Lines of code 343
Logical lines of code 215
Comment lines 249
Methods 21
Properties 1

Methods 21

Method Rating Maintainability Complexity Lines of code
svg_dimensions()
B
39 23 61
skip_svg_regeneration()
A
44 7 46
check_for_svg()
S
51 7 27
fix_admin_preview()
S
48 6 35
sanitize()
S
53 6 24
get_svg_dimensions()
S
56 6 18
fix_mime_type_svg()
S
58 5 15
get_image_tag_override()
S
57 4 15
one_pixel_fix()
S
60 4 13
disable_srcset()
S
69 4 6
str_ends_with()
S
63 4 10
__construct()
S
54 1 20
allow_svg()
S
69 2 7
is_gzipped()
S
67 2 7
featured_image_fix()
S
68 2 7
metadata_error_fix()
S
69 2 7
current_user_can_upload_svg()
S
63 2 10
pre_move_uploaded_file()
S
72 1 5
allow_svg_from_upload()
S
74 1 4
load_custom_admin_style()
S
78 1 3
setup_blocks()
S
80 1 3